package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {

   // @Select("select *from category")
    List<Category> select(Category category);
    @AutoFill(value = OperationType.UPDATE)
    void updateCategory(Category category);
    @AutoFill(value = OperationType.INSERT)
    void addCategory(Category category);

    void deleteCategory(Long id);
}
